#ifndef _DATA_STRUCTURE_H_
#define _DATA_STRUCTURE_H_

typedef struct LNode {
	int data;
	LNode *next = nullptr;
} LNode, *LinkList;

typedef struct DLNode {
	int data;
	DLNode *prior = nullptr;
	DLNode *next = nullptr;
} DLNode, *DLinkList;


// find if there is a cycle in a link list
const bool LinkList_has_cycle(LinkList head);

#endif